home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / basic / clockita.readme < prev   
Text File  |  2004-09-23  |  16KB  |  256 lines

  1. Short:        Italian clock+alarm+source code (bugfix)
  2. Author:       clockita@essemmeeerre.mailshell.com (Stefano Maria Regattin)
  3. Uploader:     clockita@esseemmeerre.mailshell.com (Stefano Maria Regattin)
  4. Version:      2.2
  5. Type:         dev/basic
  6. Distribution: OK
  7.  
  8. Date: Sunday, 18th July 2004
  9.  
  10. Name of the program: Orologio (clock)
  11. This is an italian evolution of the example program "Clock.bb" supplied with
  12. Blitz2; On Aminet you can find AmiBlitz2, a freeware evolution of this
  13. programming BASIC language, made by Bernd Roesch; today I use AmiBlitz2 in the
  14. same programming environment of Blitz2 with no problem.
  15. I say all this because who doesn't have a copy of Blitz2 can tries AmiBlitz2 and
  16. examines my source code; modifying it he/she can create, for example, a version
  17. of the clock in his/her language!
  18. This upload was made because the clock now is border sensitive, this means that
  19. the clock will recognize if the border sizes are different than the default
  20. sizes, and it will enlarge the clock's window.
  21. There is a bug in the Blitz2 language that gives erroneous date after the end of
  22. the year 2000!
  23. The bug is in the date functions Days, Months and Years; WeekDay works fine!
  24. You can change the clock font by activating the window and clicking the LEFT
  25. MOUSE BUTTON; in this case you will see a new window containing some string
  26. gadgets: the top-left gadget must be used to type the alarm's hour and mins; the
  27. next gadget at the right must be used to activate or to deactivate the alarm;
  28. the below gadget must be used to select the font: type the name of the font
  29. (with or without the ".font" suffix) that you know it resides in your FONTS:
  30. drawer; pressing RIGHTAMIGA-X keys you will clean the gadget; pressing
  31. subsequently the ENTER key you be able to see all fonts that resides in your
  32. FONTS: drawer and you  can select one of these.
  33. In this case the last gadget at top-right will show the height of the font you
  34. have selected and always you can modify it.
  35. The following two gadgets are for type into the coordinates of the top-left
  36. corner of the clock window.
  37. The four arrows box named "Angolo fisso" is for select the fixed angle: this
  38. angle (normally the top-left angle) will be ever locked on screen, giving the
  39. other three to change their position depending on the settings; the coordinates
  40. you type and save are related to this one; remember this when you change the
  41. coordinates and/or the angle by tooltypes (see below).
  42. The following two gadgets are to type into the coordinates of the bottom-right
  43. corner of the clock window; the possible combinations of the four gadgets for
  44. the top-left and for the bottom-right coordinates are shown as four arrows in
  45. the gadget previously described and are: TOP-LEFT (standard), TOP-RIGHT,
  46. BOTTOM-RIGHT and BOTTOM-LEFT.
  47. The "Colori" gadget opens a new window to select the text colour and background
  48. colour for the clock: point with the mouse pointer on a colour, and click the
  49. LEFT MOUSE BUTTON to choose it as text colour, or click the RIGHT MOUSE BUTTON
  50. to choose it as background colour.
  51. Note that you cannot select the same colour as text colour and background
  52. colour.
  53. The "*** Salva ***" gadget permits to save any change.
  54. You can specify the font name, the font size, the coordinates of the position of
  55. the main window, the related angle, the text colour and the background colour by
  56. tooltypes; when the program is launched if there are the tooltypes the
  57. informations are taken from these, otherwise the parameters are set to default.
  58. For who don't know, tooltypes are those parameters shown in the icon
  59. information  window that is shown if you select the voice INFORMATION of the
  60. ICON menu.
  61. If there is no tooltype DONOTWAIT, when you save the changes it will be added.
  62. If you have activated the alarm, in the clock window will be shown a bubble;
  63. you can deactivated it pointing with the pointer on the bubble and clicking with
  64. the LEFT MOUSE BUTTON.
  65. The default font is "Data70.font", a font made by me supplied with the
  66. program.
  67. I think that this font is better than the font "2001.font" supplied with AMOS
  68. Pro.
  69. My font is suited for italian language, for which the character "è" capital is
  70. obtainable with the "§" character; however it have all the chars from (ASCII) 32
  71. to 255 now!
  72. Use it for games in low resolution, it is better! How to install the "Data70"
  73. font: copy in your drawer "FONTS:" the file named "Data70.font".
  74. Create in your drawer "FONTS:" the drawer "Data70" and copy into it the file
  75. "13".
  76. If you have Blitz2 There is the source code (Orologio.bb2) for free
  77. modifications; if you don't have it, you can however analyze the source code by
  78. a text viewer like MultiView reading the file named "Orologio.text"; if you
  79. load the source code in Blitz2 and you see some "?????" instead of keywords, you
  80. cannot compile the program because your "deflibs" file do not have all the
  81. keywords needed: you can find a sufficiently updated deflibs file in the
  82. package "Blitz Support Suite", that was sold alone on three diskettes ("BSS1",
  83. "BSS2" and  "BSS3"), that now are part of the "Ultimate Blitz Basic" CD, that
  84. you can find for free as cd image into the BackToRoots site
  85. (http://www.back2roots.org).
  86. If you want to install by yourself the keywords needed, you must have all
  87. the libs in BlitzLibs: and the command for AmigaDOS "MakeDefLibs" from Blitz
  88. Support Suite; after this you can run from shell the command MakeDefLibs with no
  89. parameters, that it will build up a new deflibs file from your libs in BlitzLibs:,
  90. backing up the previously one.
  91. The executable icon is a ColorIcon (OS3.5) taken from the archive
  92. ReallyIcons.lha by Angel Schnider.
  93. Notes: I have removed a previous version bug of gadget garbages in the settings
  94. window that it occurred after the font was changed and then the settings window
  95. was recalled; now there are problems no more.
  96. I have corrected an error of a previous version that it happens if you have
  97. deactivated the alarm clicking on the bubble: the alarm gadget in the settings
  98. window did not deselect automatically; now the problem is solved.
  99. Now The clock use your workbench presetted sound not only for the alarm, but
  100. also to count the hours when these change.
  101. I have corrected the program to allow correct window positioning on startup when
  102. the screen height override the 512 pixel limit of the standard workbench; this
  103. it has been tested on a 800x600 True Colours WinUAE screen.
  104. I have in mind to give a bigger colours palette choose for the owners of Amigas
  105. (emulated or true) that have a graphics card but, at the moment, I don't know
  106. how to do it.
  107. Now the clock's window appears just above the screen bar, with or without the
  108. font prefs; I have also enlarged the colour boxes when your workbench uses less
  109. than sixteen colours.
  110. Corrected today a minor bug in the clock's window angles related numeric gadgets
  111. disabling.
  112. Now are stated the color numbers.
  113. There was a mistake into the year counting: now the problem is solved.
  114. I have updated my font Data70, specifically I have lowered the Data70 font
  115. underscore char.
  116. I have stated one of the adresses of my homepage instead of one of my e-mails in
  117. the workbench titlebar.
  118. I have updated my font Data70, specifically I have lowered the Data70 font
  119. underscore char.
  120. I have updated my font Data70, specifically I have raised the Data70 font tilde
  121. char.
  122. I have improved the program giving it an optional slim look by clicking the
  123. RIGHT MOUSE BUTTON.
  124. Now the clock is bottom border sensitive, it will resize its window properly.
  125. Now all the windows should be border size sensitive.
  126. I am not responsible of any damage this program can occurs to your system; you
  127. use it at your own risk!
  128. At end see my homepage to the following Internet address:
  129. http://xoomer.virgilio.it/aregat/
  130. The following is the same text in italian.
  131.  
  132. Data: domenica, 18 luglio 2004
  133.  
  134. Nome del programma: Orologio
  135. Questa è un'evoluzione italiana del programma d'esempio "Clock.bb" fornito con
  136. Blitz2; Potete trovare su Aminet AmiBlitz2, un'evoluzione gratuita di questo
  137. linguaggio di programmazione BASIC, fatta da Bernd Roesch; oggi io uso AmiBlitz2
  138. nello stesso ambiente di programmazione di Blitz2 senza problemi.
  139. Dico tutto ciò perché chi non avesse una copia di Blitz2 può provare AmiBlitz2
  140. ed esaminare il mio codice sorgente; apportando delle modifiche potrebbe, per
  141. esempio, creare una versione dell'orologio nella sua lingua!
  142. Questo caricamento è stato fatto perché l'orologio ora è sensibile ai bordi, ciò
  143. vuol dire che si accorgerà se gli spessore dei bordi sono differenti dagli
  144. spessori normali ed allargherà la finestra dell'orologio.
  145. C'è un baco nel linguggio Blitz2 che dà una data errata dopo la fine dell'anno
  146. 2000!
  147. Il baco è nelle funzioni per la data Days, Months and Years; WeekDay và bene!
  148. Potete cambiare il font dell'orologio attivando la finestra e cliccando con il
  149. TASTO SINISTRO DEL MOUSE; in questo caso vedrete una nuova finestra contenente
  150. alcuni campi per l'immissione di testo: il campo in alto a sinistra deve essere
  151. usato per digitare l'ora ed i minuti dell'allarme; il campo successivo a destra
  152. deve essere usato per attivare o disattivare l'allarme; il campo seguente in
  153. basso deve essere usato per selezionare il font; digitate il nome del font (con
  154. o senza il suffisso ".font") che sapete che si trova nel vostro cassetto FONTS:;
  155. premendo i tasti AMIGA DESTRO e X pulirete il campo; premendo successivamente il
  156. tasto ENTER sarete in grado di vedere tutti i font che si trovano nel vostro
  157. cassetto FONTS: e potrete selezionarne uno; in questo caso il campo in alto a
  158. destra mosterà l'altezza del font selezionato che potrete sempre modificare.
  159. I seguenti due campi in basso servono per impostare le coordinate dell'angolo in
  160. alto a sinistra della finestra dell'orologio.
  161. Il quadrato con dentro quattro freccie serve per la selezione dell'angolo fisso:
  162. questo angolo (solitamente l'angolo in alto a sinistra) rimarrà fisso sullo
  163. schermo, lasciando liberi gli altri tre di cambiare la loro posizione a seconda
  164. dei parametri; le coordinate che digitate e che salvate sono relative a questo
  165. angolo; ricordavetelo quando cambiate le coordinate e/o l'angolo dai tooltype
  166. (vedi di seguito).
  167. I seguenti due campi in basso servono per impostare le coordinate dell'angolo in
  168. basso a destra della finestra dell'orologio; le combinazioni possibili dei campi
  169. per le coordinate dell'angolo in alto a sinistra e per quello in basso a destra
  170. sono mostrate come freccie nel quadrato prcedentemente descritto e sono
  171. rispettivamente: l'angolo in alto a sinistra (TOP-LEFT), che è la condizione
  172. normale, l'angolo in alto a destra (TOP-RIGHT), l'angolo in basso a destra
  173. (BOTTOM-RIGHT) e l'angolo in basso a sinistra (BOTTOM-LEFT).
  174. Il bottone "Colori" apre una nuova finestra per la selezione dei colori del
  175. testo e dello sfondo: puntate con il puntatore del mouse su un colore, e
  176. cliccate il TASTO SINISTRO DEL MOUSE per sceglierlo come colore del testo, o
  177. cliccate con il TASTO DESTRO DEL MOUSE per sceglierlo come colore di sfondo;
  178. notate che non potete selezionare lo stesso colore per il testo e per lo sfondo.
  179. Il bottone "*** Salva ***" permette di salvare ogni cambiamento.
  180. Potete specificare il nome del font, l'altezza del font, le coordinate della
  181. posizione della finestra principale, l'angolo relativo, il colore del testo ed
  182. il colore dello sfondo con i tooltype; quando lanciate il programma se ci sono i
  183. tooltype le informazioni vengono prese da questi, altrimenti i parametri sono
  184. impostati ai valori di default.
  185. Per chi non lo sapesse, i tooltype sono quei parametri mostrati nella finestra
  186. delle informazioni dell'icona che esce se selezionate la voce INFORMAZIONI dal
  187. menù ICONE.
  188. Se non c'è il tooltype DONOTWAIT, verrà aggiunto quando salverete i cambiamenti.
  189. Se avete attivato l'allarme, nella finestra dell'orologio comparirà una bolla;
  190. potete disattivarlo in qualsiasi momento portando il puntatore del mouse sulla
  191. stessa e cliccando con il TASTO SINISTRO DEL MOUSE.
  192. Il font di default è "Data70.font", un font fatto da me fornito col programma.
  193. Io credo che questo font sia migliore del font "2001.font" fornito con AMOS Pro.
  194. Il mio font è adattato per la lingua italiana, per la quale il carattere "è"
  195. maiuscolo è ottenibile con il carattere "§"; comunque ha tutti i caratteri dal
  196. (ASCII) 32 al 255; usatelo in giochi a bassa risoluzione, rende meglio!
  197. Come installare il font "Data70": copiate nel vostro cassetto "FONTS:" il file
  198. "Data70.font". Create nel vostro cassetto "FONTS:" il cassetto "Data70" e
  199. copiatevi il file "13".
  200. Se avete Blitz2 c'è il codice sorgente (Orlogio.bb2) per libere modifiche; se
  201. non lo avete, potete lo stesso analizzare il codice sorgente leggendo con un
  202. visualizzatore di testi come MultiView il file "Orologio.text"; se voi caricate
  203. il codice sorgente in Blitz2 e vedete dei "?????" al posto dei comandi, non
  204. potete compilare il programma perché il vostro file "deflibs" non ha tutti i
  205. comandi richiesti; potrete trovare un file deflibs aggiornato nel pacchetto
  206. "Blitz Support Suite", che era venduto a parte su tre dischetti ("BSS1", "BSS2"
  207. e "BSS3"), che ora sono parte del CD "Ultimate Blitz Basic", che potete trovare
  208. gratuitamente come immagine cd nel sito BackToRoots (http://www,back2roots.org).
  209. Se volete installare da soli i comandi necessari, dovete avere tutte le librerie
  210. in BlitzLibs ed il comando per AmigaDOS "MakeDefLibs" dal pacchetto Blitz
  211. Support Suite; dopo di ciò potete eseguire il comando MakeDefLibs senza
  212. parametri da shell, che creerà un nuovo file deflibs usando le vostre librerie
  213. in BlitzLibs:, conservando il file deflibs precedente.
  214. L'icona dell'eseguiblie e un'icona ColorIcon (OS3.5) presa dall'archivio
  215. ReallyIcons.lha di Angel Schnider.
  216. Note: ho rimosso il problema di una precedente versione che creava dei campi
  217. sbagliati nella finestra dei parametri, il che avveniva dopo che il font veniva
  218. cambiato e veniva richiamata la finestra stessa; ora non ci sono più problemi.
  219. Ho corretto il difetto di una precedente versione che si verificava se si
  220. disattivava l'allarme cliccando sulla bolla: il bottone per la selezione
  221. dell'allarme nella finestra delle impostazioni non si deselezionava
  222. automatcamente; ora il problema è risolto.
  223. Ora l'orologio usa il suono preimpostato del workbench non solo per l'allarme,
  224. ma anche per contare le ore quando cambiano.
  225. Ho corretto il programma per avere un posizionamento corretto della finestra
  226. all'avvio l'altezza dello schermo supera il limite del workbench standard dei
  227. 512 pixel; ciò è stato testato su uno schermo 800x600 True Colours di WinUAE.
  228. Ho in mente di dare una scelta di colori della tavolozza piu ampia per i
  229. possessori di Amiga (emulati o no) che hanno una shceda grafica ma, al momento,
  230. non so come fare.
  231. Ora la finestra dell'orologio compare giusto sotto la barra dello schermo, con o
  232. senza le preferenze delle fonti di carattere; ho anche allargato i quadrati dei
  233. colori quando il vostro workbench usa meno di sedici colori.
  234. Corretto oggi un piccolo baco nella disattivazione dei campi numerici relativi
  235. agli angoli della finestra dell'orologio.
  236. Ora vengono indicati i numeri dei colori.
  237. C'era un errore nel conteggio dell'anno: ora il problema è risolto.
  238. Ho aggiornato il mio font Data70, specificamente ho abbassato il carattere
  239. trattino basso nel font Data70.
  240. Ho indicato uno degli indirizzi dellla mia pagina invece di una delle mie e-mail
  241. nella barra dello schermo del workbench.
  242. Ho aggiornato il mio font Data70, specificamente ho abbassato il carattere
  243. trattino basso.
  244. Ho aggiornato il mio font Data70, specificamente ho alzato il carattere tilde.
  245. Ho migliorato il programma dandogli un'aspetto più semplice opzionale che si
  246. ottiene cliccando il TASTO DESTRO DEL MOUSE.
  247. Ora l'orologio dovrebbe essere sensibile allo spessore bordo in basso, si
  248. ridimensionerà appropriatamente.
  249. Ora tutte le finestre dovrebbero essere sensibili agli spessori dei loro bordi.
  250. Non sono responsabile dei danni che questo programma può arrecare al vostro
  251. sistema, lo usate a vostro esclusivo rischio!
  252. Per finire guardate la mia pagina su Internet al seguente indirizzo:
  253. http://xoomer.virgilio.it/aregat/
  254.  
  255. Ciao!
  256.